<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
request.setAttribute("ctx", basePath);
%>
<script>
	// 0 Release; 1 内网测试; 2 外网测试服务器
	var DEBUG = 2;
	function getAppPath(){
		return "${ctx}";
	}
	function getApiServer(){
		
		if(1==DEBUG) return 'http://test.itbour.com:3000';
		if(2==DEBUG) return 'http://test.itbour.com:3000';
		//return 'http://120.27.141.121:3000';
		return 'https://api.itbour.com';
	}
	function getDesignServer(){
		if(1==DEBUG) return 'http://192.168.1.250:2702';
		if(2==DEBUG) return 'https://test-design.itbour.com';
		return 'https://design.itbour.com';
	}
	function getImageServer(){
		if(1==DEBUG) return 'http://192.168.1.250:3003';
		if(2==DEBUG) return 'http://47.97.22.47:3003';
		return 'http://120.27.141.154:3003';
	}
	function getHomeServer(){
		if(1==DEBUG) return 'http://192.168.1.250:2700';
		if(2==DEBUG) return 'https://test.itbour.com';
		return 'https://www.itbour.com';
	}
	function getPublishServer(){
		if(1==DEBUG) return 'http://192.168.1.250:2801';
		if(2==DEBUG) return 'http://47.97.22.47:2801';
		return 'http://114.55.109.34:2801';
	}
	function getYjxHomeServer(){
		if(1==DEBUG) return 'http://192.168.1.250:3011';
		if(2==DEBUG) return 'http://47.97.22.47:3011';
		return 'http://yjxapphome.itbour.com';
	}
	function getYjxWebServer(){
		if (1 == DEBUG) return 'https://test.yijianxiu.com';
		if (2 == DEBUG) return 'https://test.yijianxiu.com';
		return 'https://www.yijianxiu.com';
	}
	function getYjscImgHashServer(){
		if (1 == DEBUG) return 'https://test-imagehash.itbour.com';
		if (2 == DEBUG) return 'https://test-imagehash.itbour.com';
		return 'https://imagehash.itbour.com';
	}
</script>